package com.example.homework.homework02;

// 线程类
public class CopyRunnable implements Runnable {
    private Punishment punishment; // 记住线程要处理的对象

    public CopyRunnable(Punishment punishment) {
        this.punishment = punishment;
    }

    @Override
    public void run() {
        punishment.write();
    }
}
